Review and replace uses of get_toplevel
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Mar 2019 23:41:26 +0000 (19:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:24:39 +0000 (20:24 +0000)
commit9059eee2f0d56f78a5845b40a016ac22c89a0271
tree8e87252e5753390eea672c14c34bb6aa57bbf826
parentc1d5e82d95a21e48e698ddbe9f0f61c5dfb969a6
Review and replace uses of get_toplevel

Now that roots can have parent widgets, we need to
carefully examine all calls of gtk_widget_get_toplevel,
and replace them with gtk_widget_get_root if we want
the nearest root, and not the ultimate end of the parent
chain.
12 files changed:
gtk/a11y/gtkmenuitemaccessible.c
gtk/gtkappchooserbutton.c
gtk/gtkcellrendereraccel.c
gtk/gtkcolorbutton.c
gtk/gtkcoloreditor.c
gtk/gtkdnd.c
gtk/gtkdragdest.c
gtk/gtklabel.c
gtk/gtkmain.c
gtk/gtktooltip.c
gtk/gtkwidget.c
gtk/gtkwindow.c